package com.allst.dubbo.bean;

import com.allst.dubbo.service.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * 消费组组件
 *
 * @author June
 * @since 2021年03月
 */
@Component
public class ConsumerComponent {
    @Reference
    private HelloService helloService;

    public String sayHello(String name) {
        return helloService.seyHello(name);
    }
}
